package com.tjbank.cssys.web.controller;

import com.github.pagehelper.PageInfo;
import com.tjbank.cssys.web.service.CkCreditOutCompanyDataLogService;
import com.tjbank.cssys.web.util.CommonResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/ReconciliationCommission")
public class CkCreditOutCompanyDataLogController {

    @Autowired
    private CkCreditOutCompanyDataLogService ckCreditOutCompanyDataLogService;

    /**
     * 高淙博  --- 获取对账佣金案件列表
     *
     * @param pageNum
     * @param
     * @return
     */
    @ApiOperation("获取对账佣金案件列表")
    @PostMapping(value = "/ReconciliationCommissionList")
    public CommonResult getReconciliationCommissionList(@RequestBody Map<String,Object> map) {
        PageInfo pageInfo = ckCreditOutCompanyDataLogService.SelectReconciliationCommissionList(map);
        return CommonResult.success(pageInfo);
    }


    @RequestMapping(value = "/Uncheck/Companys")
    public CommonResult getUncheckCompanys(){
        List<Map<String, Object>> companys = ckCreditOutCompanyDataLogService.getCompanys(null);
        return CommonResult.success(companys);
    }
}
